package com.zhitong.money.services.api;

import com.github.pagehelper.PageInfo;
import com.zhitong.money.entity.Dept;

import java.util.List;
import java.util.Map;

public interface IDeptService {

    public List<Dept> findAllDept() throws Exception;

    public PageInfo findDeptByPage(Map<String,Object> map) throws Exception;

    public List<Dept> findDeptByMap(Map<String,Object> map) throws Exception;

    public Dept findDeptByTid(String tid) throws Exception;

    public Dept findDeptByName(String name)throws Exception;

    public Dept findDeptById(String id) throws Exception;

    public void updateDept(Map<String,Object> map) throws Exception;

    public int delDeptById(String id) throws Exception;

    public void addDept(Map<String,Object> map) throws Exception;

    public int delDeptByIds(List<String> ids) throws Exception;
}
